Draws a line between two points, using the specified line color, width and dash pattern.
If the dashPattern array contains two or more items, the line is drawn with a Pen having Pen.LineCap set to PenLineCap.Square instead of PenLineCap.Flat.
シンタックス
'宣言
Public Overloads Sub DrawLine( _
ByVal As System.Drawing.PointF, _
ByVal As System.Drawing.PointF, _
ByVal As System.Drawing.Color, _
ByVal As System.Single, _
ByVal () As System.Single _
)
public void DrawLine(
System.Drawing.PointF ,
System.Drawing.PointF ,
System.Drawing.Color ,
System.float ,
System.float[]
)
パラメータ
- p1
- The first point.
- p2
- The second point.
- lineColor
- The line color.
- lineWidth
- The line width.
- dashPattern
- The dash pattern.
参照